"""Common API schemas shared across endpoints."""

from pydantic import BaseModel, Field


class BulkDeleteRequest(BaseModel):
    """批量删除请求（通用）."""

    ids: list[int] = Field(
        ..., min_length=1, max_length=50, description="要删除的ID列表（最多50个）"
    )


class BulkOperationResponse(BaseModel):
    """批量操作响应（通用）."""

    success: int = Field(..., description="成功操作的数量")
    failed: int = Field(0, description="失败的数量")
    not_found: int = Field(0, description="未找到的数量")
    message: str = Field(..., description="操作结果描述")
